
    <link rel="stylesheet" href="/backstage/css/baidu_map.css">

    <div id="container" ></div>
    <div id="seach-box"><input type="text" id="keyword" placeholder="  输入地点搜索"/></div>
    <div id="searchResultPanel" style="border:1px solid #C0C0C0;width:150px;height:auto; display:none;"></div>

    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=KK9jmI5H7DbSthurwxKWXiqxorMHMXb8"></script>
    <script src="/backstage/js/baiduMap.js"></script>
<script>
    function mapInfo(site,point){
//        console.log('地址',site)
//        console.log('坐标',point)

        $('input[name="address"]').val(site);
        $('input[name="lng"]').val(point.lng);
        $('input[name="lat"]').val(point.lat);

//        var url = "http://api.map.baidu.com/geocoder/v2/?location="+point.lat+","+point.lng+"&output=json&ak=KK9jmI5H7DbSthurwxKWXiqxorMHMXb8";

        $.post('/api/getAdCode',{lng:point.lng,lat:point.lat},function(res){

            if(res.code==200){
               $('input[name="area_id"]').val(res.data.adcode);

            }
        },'json');

    }
</script>

